package com.twu.biblioteca;

import com.twu.biblioteca.Persistence.UserRepository;
import com.twu.biblioteca.library.Library;
import com.twu.biblioteca.ui.BibilioTechaUI;
//BibileotecaApp class drives the application forward
public class BibliotecaApp {
    public static void initializeApplication()throws Exception
    {
        Library.getBookReservationManager().getBooksRepository().populateBookList();
        Library.getMovieReservationManager().getMoviesRepository().populateMovieList();
        UserRepository.populateUsers();

    }

    public static void main(String [] args)throws Exception {
        initializeApplication();
        BibilioTechaUI uiobject=new BibilioTechaUI();
        uiobject.run();
    }

}
